package com.ddwl.schema.bo.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/6/16 23:56
 */
@ApiModel("商品图片Bo")
@Setter
@Getter
public class ItemMediaBo {
    @ApiModelProperty("主键")
    private String id;
    @ApiModelProperty("商品ID")
    private String itemId;
    @ApiModelProperty("子商品ID")
    private String skuId;
    @NotNull
    @ApiModelProperty("媒体路径")
    private String mediaUrl;
    @ApiModelProperty("媒体序列号 视频是 0 ，图片从1开始递增")
    @NotNull(message = "媒体序号不能为空")
    private Integer mediaIndex;
    @ApiModelProperty("媒体类型 0图片1视频")
    private Integer mediaType;
}
